package org.example.seckillsample.service;

import org.example.seckillsample.entity.Commodity;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

public interface SecKillService {
    List<Commodity> findAll();
    Commodity findById(Long commodityId);
    boolean buy(long commodityId, String money,String phone);
}
